package com.synjones.handsetS8.ild.adapter.viewholder;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;
import android.widget.Toast;

import com.synjones.handsetS8.R;;
import com.synjones.handsetS8.ild.pages.WorkerListActivity;
import com.synjones.m1card.M1CardInfo;

/**
 * @author Chris Chan
 * Create on: 2021/7/23}17:00
 * For:
 * Explain:
 */
public class FindBraceletHandler extends Handler {
    private Context context;
    private int code;
    @Override
    public void handleMessage(Message msg) {
        if (code == msg.what) {
            M1CardInfo m1CardInfo = (M1CardInfo) msg.obj;
            if (m1CardInfo != null) {
                String braceletCode = m1CardInfo.getCardNoStr();
                //((TextView) popupWindowChange.getContentView().findViewById(R.id.tv_bracelet_no)).setText(braceletCode);
                Toast.makeText(context, "已探测到手环", Toast.LENGTH_SHORT).show();
                //popupWindowChange.dismiss();
            }
        }
    }
}
